import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, ParamMap } from '@angular/router';

@Component({
    selector: 'op-role-detail',
    templateUrl: './role-detail.component.html'
})
export class RoleDetailComponent implements OnInit {
    id: string;

    constructor(private route: ActivatedRoute) { }

    ngOnInit(): void {
        console.log('RoleDetailComponent');
        this.route.paramMap.subscribe(p => this.id = p.get('id'));
    }
}